<ul class="pop" >
    @foreach(\App\Nav::getMenu('主菜单') as $tab)
        <li>
            @if($tab['type']==1)
                <a href="{{route('wap.post-index',['id'=>$tab['link']])}}">
            @elseif($tab['type']==2)
                <a href="{{route('wap.post-list',['slug'=>$tab['link']])}}">
            @elseif($tab['type']==3)
                <a href="{{$tab['link']}}">
            @endif
                <div class="pop-icon pop-icon{{$loop->iteration}}"></div>
                <div class="pop-text">{{$tab['name']}}</div>
            </a>
        </li>
    @endforeach
</ul>
